package ccpc_2024;

import java.util.Arrays;
import java.util.Scanner;

public class A {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        long[] T = new long[n];
        for (int i = 0; i < n; i++)  T[i] = sc.nextLong();
        long[] starts = new long[n];
        for (int i = 0; i < n; i++) starts[i] = sc.nextLong();
        long start = sc.nextLong();
        long end = sc.nextLong();
        long l = 0, r = (long)1000000000*1000000000;
        long ans = 0;
        for(int i = 0; i < n; i++){
            if(end < starts[i])  continue;

        }
        while(l < r) {

        }

    }
}
